package com.example.project_cost;

import android.content.Context;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class DataCost extends SQLiteOpenHelper{

	public String sCreateTableCommand;
	
	public static final int VERSION = 1;
	
	public DataCost(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
		// TODO Auto-generated constructor stub
		sCreateTableCommand="";
	}
	
	public DataCost(Context context, String name) {
		this(context, name, null, VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		// TODO Auto-generated method stub
		if(sCreateTableCommand.isEmpty())
			return;
		
		db.execSQL(sCreateTableCommand);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVer, int newVer) {
		// TODO Auto-generated method stub
		
	}

}